package com.com.knowledgepaymentmanagementsystem.service.course.impl;

import com.com.knowledgepaymentmanagementsystem.mapper.course.VideoMapper;
import com.com.knowledgepaymentmanagementsystem.pojo.course.Video;
import com.com.knowledgepaymentmanagementsystem.service.course.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//声明业务层
@Service
public class VideoServiceImpl implements VideoService {
    // 注入 VideoMapper 接口
    @Autowired
    private VideoMapper videoMapper;

    @Override
    public List<Video> findVideoList(Video video) {
        return videoMapper.findVideoList(video);
    }

    @Override
    public void delVideoById(Integer id) {
        videoMapper.delVideoById(id);
    }

    @Override
    public void addVideo(Video video) {
        videoMapper.addVideo(video);
    }

    @Override
    public void updateVideo(Video video) {
        videoMapper.updateVideo(video);
    }
}
